package com.powernode.work.dao;

import com.powernode.work.bean.ActivityBean;

import java.util.List;
import java.util.Map;

public interface ActivityMapper {
    int deleteByPrimaryKey(String id);

    int insert(ActivityBean record);

    int insertSelective(ActivityBean record);

    ActivityBean selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(ActivityBean record);

    int updateByPrimaryKey(ActivityBean record);

    /**
     *条件搜索
     * @param activity
     * @return
     */
    List<ActivityBean> selectAll(ActivityBean activity);

    int delBatch(String [] ids);


    List<ActivityBean> selectActivitysByClueId(String clueId);

    /**
     * 解除线索市场活动的关联
     * @param clueId
     * @param activityId
     * @return
     */
    int deleteClueActivityByClueIdAndActivityId(String clueId,String activityId);

    /**
     * 统计每月的市场活动数量
     * @return
     */
    List<Map> selectGroup();
}